function plotData (data, target)

indexN = (target == -1);
indexP = (target == 1);

data=data';
figure;

plot (data(indexP,1),data(indexP,2),'.b');
hold all;
plot (data(indexN,1),data(indexN,2),'.r');

end

